
<div class="backend clearfix">
	
	<h2>Your current listings</h2>
	
	<?=anchor('member/listings/add', 'Add a new Listing', array('class' => 'bigbutton add_link'))?>
	
	<table class="table">
		
		<thead>
			<tr>
				<th>Category</th>
				<th>Title</th>
				<th>Description</th>
				<th colspan="2"><span id="tip" class="functions text-center">&nbsp;</span></th>
			</tr>
		</thead>
		
		<tbody>	
			<?php foreach($listings as $entry): ?>
			<tr>
				<td><?=$entry->FK_category_id?></td>
				<td><?=$entry->title?></td>
				<td><?=character_limiter($entry->description, 50)?></td>
				<td class="functions">
					<?=anchor('listings/details/'.$entry->entry_id, 'Show', array('class' => 'icon detail tip', 'title' => 'Show'))?>
					<?=anchor('member/listings/edit/'.$entry->entry_id, 'Edit', array('class' => 'icon edit tip', 'title' => 'Edit'))?>
					<?php echo anchor('member/listings/remove/'.$entry->entry_id, 'Delete', array('class' => 'confirm icon delete tip', 'title' => 'Delete'))?>
				</td>
			</tr>
			<?php endforeach ?>	
		</tbody>
		
	</table>
	
</div>
	